package com.sky.city.base;


import android.content.Context;
import android.content.res.Configuration;
import android.util.DisplayMetrics;

import com.common.baselibrary.BaseLibraryApplication;
import com.danikula.videocache.HttpProxyCacheServer;

import java.util.Locale;

public class BaseApplication extends BaseLibraryApplication {
    @Override
    public void onCreate() {
        super.onCreate();
    }

    private HttpProxyCacheServer proxy;

    public static HttpProxyCacheServer getProxy(Context context) {
        BaseApplication app = (BaseApplication) context.getApplicationContext();
        return app.proxy == null ? (app.proxy = app.newProxy()) : app.proxy;
    }

    private HttpProxyCacheServer newProxy() {
        return new HttpProxyCacheServer(this);
    }

}
